package com.teamall.core.common;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.teamall.framework.util.FrameWorkConstants;

/**
 * <Description>分页类：分页参数及查询结果的封装 <br>
 * 
 * @author pan.xiaobo<br>
 * @version 1.0<br>
 * @taskId <br>
 * @CreateDate 2014-9-1 <br>
 * @since V1.0<br>
 * @see com.teamall.appmgr.core.common <br>
 */
public class DwzPage<T> extends RowBounds {

    // 分页参数中，当前页面,默认为1
    @JsonIgnore
    private int pageCurrent = 1;

    // 分页参数中，前台分页数对应于PageSize,每页记录数
    @JsonIgnore
    private int pageSize = 20;
    
    // 排序字段
    private String orderField;

    // 排序类型asc desc
    private String orderDirection;


    public DwzPage() {

    }

	public int getPageCurrent() {
		return pageCurrent;
	}

	public void setPageCurrent(int pageCurrent) {
		this.pageCurrent = pageCurrent;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public String getOrderField() {
		return orderField;
	}


	public void setOrderField(String orderField) {
		this.orderField = orderField;
	}


	public String getOrderDirection() {
		return orderDirection;
	}


	public void setOrderDirection(String orderDirection) {
		this.orderDirection = orderDirection;
	}


}
